package org.sith.taskrunenr.tasks.hellotask;


import org.sith.taskrunner.api.exceptions.TaskExecutionException;
import org.sith.taskrunner.api.exceptions.TaskInitException;
import org.sith.taskrunner.api.task.Task;

public class HelloTask implements Task<HelloInpudData,HelloResult> {
    private String name;


    @Override
    public void init(HelloInpudData inputData) throws TaskInitException {
        name = inputData.getName();
    }

    @Override
    public HelloResult executeTask() throws TaskExecutionException {
        HelloResult result = new HelloResult("Hello "+name);
        return result;
    }
}
